//
//  UserProtocalViewController.m
//  PeopleStreet
//
//  Created by 刘建峰 on 16/6/14.
//  Copyright © 2016年 yuf. All rights reserved.
//

#import "UserProtocalViewController.h"

@interface UserProtocalViewController ()
@property (weak, nonatomic) IBOutlet UIView *navView;
@property (weak, nonatomic) IBOutlet UIWebView *webView;

@end

@implementation UserProtocalViewController

- (void)viewDidLoad {
    [super viewDidLoad];
    [self initViewLayout];
    // Do any additional setup after loading the view.
}

- (void)initViewLayout{
    [self adaptiveViewLayout:self.view];
    [self adaptiveViewLayout:self.navView];
    
    NSURLRequest *req = [[NSURLRequest alloc] initWithURL:[NSURL URLWithString:[NSString stringWithFormat:@"http://%@%@",IP_Address_Fresh,SX_userAgreement]]];
    [_webView loadRequest:req];

}

- (IBAction)back:(id)sender {
    MyNavigationViewController * navC = (MyNavigationViewController *)self.navigationController;
    [navC popViewController];
}


- (void)didReceiveMemoryWarning {
    [super didReceiveMemoryWarning];
    // Dispose of any resources that can be recreated.
}

/*
#pragma mark - Navigation

// In a storyboard-based application, you will often want to do a little preparation before navigation
- (void)prepareForSegue:(UIStoryboardSegue *)segue sender:(id)sender {
    // Get the new view controller using [segue destinationViewController].
    // Pass the selected object to the new view controller.
}
*/

@end
